Fontify CPP expressions correctly when starting in the middle of such a
authorAlan Mackenzie <acm@muc.de>
Sat, 20 Aug 2011 15:23:04 +0000 (15:23 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 20 Aug 2011 15:23:04 +0000 (15:23 +0000)
commitb4a6d72f9d9acf04d959523e57face4721297553
tree8165e9e29395317c786d1ed1ce9a47b3ebc82587
parente558ed0d4a89583e5a5940ae2a8f69a0c0fd7be0
parent42616df58118f5d5eae0373e3eef0937a7237253
Fontify CPP expressions correctly when starting in the middle of such a
construct.  Mainly for when jit-lock etc. starts a chunk here.

cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare):  Test for being in a CPP form which
takes an expression.

cc-langs.el (c-cpp-expr-intro-re): New lang-variable.